package com.ziq.zcamp.util.encrypt;

import java.nio.charset.StandardCharsets;

public class Base64Tools {

    public static String base64Encode(String data){
        return Base64Utils.encodeToString(data.getBytes(StandardCharsets.UTF_8));
    }

    public static String base64Decode(String data){
        return new String(Base64Utils.decode(data),StandardCharsets.UTF_8);
    }
}
